export const searchProps = [
  {
    type: 'input',
    value: 'province',
    name: '省份',
    style: {
      width: '180px',
    },
    placeholder: '请输入',
  },
  {
    type: 'input',
    value: 'city',
    name: '城市',
    style: {
      width: '180px',
    },
    placeholder: '请输入',
  },
  {
    type: 'date3',
    value: 'time',
    name: '日期',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '240px',
    },
  },
];

export const columns = [
  {
    dataIndex: 'date',
    title: '统计时间',
    align: 'center',
    ellipsis: true,
    width: 180,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'provinceName',
    title: '省份',
    align: 'center',
    ellipsis: true,
    width: 180,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'cityName',
    title: '城市',
    align: 'center',
    ellipsis: true,
    width: 180,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    key: 'formNumAll',
    title: '表单总量',
    align: 'center',
    children: [
      {
        dataIndex: 'formNum',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'quotaAll',
    title: '额度5w以上',
    align: 'center',
    children: [
      {
        dataIndex: 'quota',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'scoreAll',
    title: '芝麻信用分650以上',
    align: 'center',
    children: [
      {
        dataIndex: 'score',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'sevenHundredScoreAll',
    title: '芝麻信用分700以上',
    align: 'center',
    children: [
      {
        dataIndex: 'sevenHundredScore',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'accumulationAll',
    title: '公积金',
    align: 'center',
    children: [
      {
        dataIndex: 'accumulation',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'socialSecurityAll',
    title: '社保',
    align: 'center',
    children: [
      {
        dataIndex: 'socialSecurity',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'carAll',
    title: '车',
    align: 'center',
    children: [
      {
        dataIndex: 'car',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'houseAll',
    title: '房',
    align: 'center',
    children: [
      {
        dataIndex: 'house',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
  {
    key: 'occupationAll',
    title: '职业',
    align: 'center',
    children: [
      {
        dataIndex: 'occupation',
        title: 0,
        align: 'center',
        ellipsis: true,
        width: 180,
        customRender: (text) => (text === 0 ? 0 : text || '/'),
      },
    ],
  },
];
console.log('打印的值',columns)